<script lang="ts" setup>
import { useFlowStore, getTaskStatusClass } from '../../flowStore'
const props = defineProps(["node"])
const flowStore = useFlowStore()
</script>
<template>
    <div class="flow-finish-node">
        <div :class="[getTaskStatusClass(flowStore.mode, node.taskStatus), 'flow-node-btn']"
            @click="flowStore.openNode(props.node.nodeId)">流程结束</div>
    </div>
</template>
<style scoped></style>